#define XTAL 1000000 //< clock frequency in Hz, used to calculate delay timer
#include "LCD\lcd.h"
#include "LCD\lcd.c"

char lcd_str[17]; // used by LCD_NUMBER

// CONFIGURATION 
#define ACTIVATE_LCD {lcd_init(LCD_DISP_ON);}

// OUTPUT
#define CLEAR_LCD lcd_clrscr();
#define LCD_XY(x,y) lcd_gotoxy(((x)-1),((y)-1));
#define LCD_TEXT(string) lcd_puts(string);
#define LCD_NUMBER(v) {itoa( (v),lcd_str,10); lcd_puts(lcd_str);};

